package exception;

/**
 * finally 块的演示
 */
public class TryFinallyDemo {
    public static void main(String[] args) {
        System.out.println("start");
        try{
            String line=null;
            System.out.println(line.length());
            return;
        }
        catch(Exception e){
            System.out.println("Exception");
        }
        finally {
            System.out.println("Anyway I will be executed");
        }

        System.out.println("end");

    }
}
